<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="g" uri="/g-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑请假条</title>
<jsp:include page="../include/edit_meta.jsp"></jsp:include>
</head>
<body>

<div class="panel">
    <div class="panel_header">
        <h1>填写请假申请</h1>
    </div>
    <div class="panel_body">
        <!--表单布局-->
        <form action="${ctx }/leave/leave!save.shtml" id="edit_form" method="post">
        	<input name="id" type="hidden" value="" />
        	
        	
	        <div class="form_wrap">
		        <div class="form_item br">
		            <label>请假人：</label>
		            <input name="leave.proposerName" type="text" value="${leave.proposerName}" class="input_text" />
		        </div>
		        <div class="form_item br">
		            <label>所属部分：</label>
		            <s:select list="groupList"
				            headerKey=""
				            headerValue="请选择"
							name="leave.groupId"
				           	listKey="id"
				           	listValue="name"/>
		        </div>
		        <div class="form_item br">
		            <label>请假事由：</label>
		            <textarea name="leave.reason" value="${leave.reason}" rows="4" cols="40" ></textarea>
		    	</div>
		    	<div class="form_item br">
		            <label>请假类型：</label>
		            <s:select list="leaveTypeList"
				            headerKey=""
				            headerValue="请选择"
							name="leave.type"
				           	listKey="code"
				           	listValue="title"/>
		        </div>
		        <div class="form_item br">
		            <label>开始时间：</label>
		            <input name="leave.startTime" type="text" value="${leave.startTime}" class="input_text" />
		        </div>
		        <div class="form_item">
		            <label>结束时间：</label>
		            <input name="leave.endTime" type="text" value="${leave.endTime}" class="input_text" />
		        </div>
		        <div class="form_item br">
		            <label> 共：</label>
		            <input name="leave.totalDate" type="text" value="${leave.totalDate}" class="input_text" size="2"/>
		           	 <div class="fl">天</div>
		           	<input name="leave.totalTime" type="text" value="${leave.totalTime}" class="input_text" size="2"/>
		              <div class="fl">小时</div>
		        </div>
		    	<div class="divider"></div>
		    	
		    </div>
		    <!--表单布局-->
		    
		    <div class="form_btn">
		        <ul>
		            <li><input type="submit" value="提交" /></li>
		             <li><a href="#"><h3>取消</h3></a></li>
		        </ul>
		    </div>
		</form>
        <!--表单布局end-->
    </div>
</div>
</body>
</html>